#ifndef CHECKINWINDOW_H
#define CHECKINWINDOW_H

#include <QDateTime>
#include <QLineEdit>
#include "sqlhelper.h"
#include "messagebox.h"
#include "recordwindow.h"
#include "user.h"

class CheckinWindow : public QWidget
{
    Q_OBJECT
public:
    CheckinWindow(QWidget *parent = nullptr);

private slots:
    void onCheckinButtonClicked();
    void onRecordButtonClicked();
    void onEnterButtonClicked();

protected:
    void showCentered();

    QString getCurrentTime();

    QLineEdit *_brandLineEdit;
    QLineEdit *_productLineEdit;
    QLineEdit *_caffeineLineEdit;
    QPushButton *_checkinButton;
    QPushButton *_enterButton;
    QPushButton *_recordButton;
};

#endif // CHECKINWINDOW_H

//管理员可以查看所有用户的打卡记录。
